﻿@{
    Layout = "_LayoutPhone";
}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<script src="~/admui-13945148017-1592211513218/public/js/tsk/sweetalert.min.js"></script>
<div class="container mt-4 main-container">
    <div class="card mb-4">
        <div class="main" style="padding:0px;margin:0px;width:100%">
            <div class="tab-content">

                <div id="visit_cust" class="tab-pane active show">
                    <br />
                    <div id="liebiao">
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<script type="text/javascript">
    $(document).ready(function () {
        liebiao();
    });
    function liebiao() {
        $.ajax({
            type: 'POST',
            url: '../PhoneBeiWangLu/GetList',
            async: false,
            dataType: 'json',
            success: function (date) {
                console.log(date);
                var pin = "";
                $(date).each(function (key) {
                    if (date[key].TiXingShiJian == null) {
                        pin = pin + "<ul class='community-list' id='xiaoqubangding' style='color:#808080; width: 100%; height: auto; margin: 0; padding: 5px 10px; list-style: none;' ><li  onclick='bangding(" + date[key].Id + ")' class='list-item'  style='border-radius: 15px; width: 100%; height: auto;; background-color: rgb(241, 241, 241); padding: 0 0.5rem; box-shadow: 0 3px 5px 0px #888888; border: 1px solid #888888'><div class='item-top' style='width: 100%; height: 2.5rem; padding: 8px 0px; text-indent: 40px; font-size: 14px'><span>" + date[key].BiaoTi + "</span></div><hr style='padding: 0px; margin: 15px 0px 0px 0px; height: 1px' /><div class='item-bottom' style='text-align: left; font-size: 13px; '><span style='color:#FFA500'><b>内容：</b></span><span id='sa_zhuangtai'>" + date[key].NeiRong + "</span></div><div class='item-bottom' style='text-align: right; font-size: 13px; '><span style='color:#FFA500; '><b>上报时间：</b></span><span id='sa_shijian'></span></div></li></ul>";
                    } else {
                        pin = pin + "<ul class='community-list' id='xiaoqubangding' style='color:#808080; width: 100%; height: auto; margin: 0; padding: 5px 10px; list-style: none;' ><li  onclick='bangding(" + date[key].Id + ")' class='list-item'  style='border-radius: 15px; width: 100%; height: auto;; background-color: rgb(241, 241, 241); padding: 0 0.5rem; box-shadow: 0 3px 5px 0px #888888; border: 1px solid #888888'><div class='item-top' style='width: 100%; height: 2.5rem; padding: 8px 0px; text-indent: 40px; font-size: 14px'><span>" + date[key].BiaoTi + "</span></div><hr style='padding: 0px; margin: 15px 0px 0px 0px; height: 1px' /><div class='item-bottom' style='text-align: left; font-size: 13px; '><span style='color:#FFA500'><b>内容：</b></span><span id='sa_zhuangtai'>" + date[key].NeiRong + "</span></div><div class='item-bottom' style='text-align: right; font-size: 13px; '><span style='color:#FFA500; '><b>上报时间：</b></span><span id='sa_shijian'>" + date[key].TiXingShiJian + "</span></div></li></ul>";
                    }
                })
                $("#liebiao").html(pin);
            },
        })
    }
    function bangding(Id) {
        location.href = "../PhoneBeiWangLu/CreateAndModify?Id=" + Id;
    }
</script>